package com.kfit.socket;

import java.io.Serializable;

public class SocketMsg implements Serializable {
	/**
	 * @fieldName: serialVersionUID
	 * @fieldType: long
	 * @Description: TODO
	 */
	private static final long serialVersionUID = 38183855137300238L;
	private int type;// 聊天类型，0：群聊；1：单聊;
	private String fromUser;// 发送者.
	private String toUser;// 接受者. session.getId();
	private String msg;// 消息.

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public String getFromUser() {
		return fromUser;
	}

	public void setFromUser(String fromUser) {
		this.fromUser = fromUser;
	}

	public String getToUser() {
		return toUser;
	}

	public void setToUser(String toUser) {
		this.toUser = toUser;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}
}
